package com.css.dzj.dzjap.modules.lawenforcesuper.service;

import com.css.dzj.dzjap.common.util.R;
import com.css.dzj.dzjap.modules.apunit.entity.ApUnitEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.entity.ApDeptExtractInfoEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.entity.ApDeptExtractRelationEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.view.ApDeptExtractView;
import com.css.dzj.dzjap.modules.publick.entity.ApPublicEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 安评单位抽取service
 * @author limanman
 */

public interface ApDeptExtractService {

    R saveApDeptExtract(ApDeptExtractInfoEntity apDeptExtractInfoEntity, HttpServletRequest request);

   QueryResults<ApDeptExtractInfoEntity> queryExtract(Pageable pageable,String taskTitle,HttpServletRequest request);

    ApDeptExtractInfoEntity queryExtractInfoById(String taskId);

   QueryResults<ApDeptExtractRelationEntity> queryExtractApDept(Pageable pageable,String taskId);

   QueryResults<ApDeptExtractView> queryApUnitByTaskId(Pageable pageable, String taskId,HttpServletRequest request);

   void updApDeptExtractRelation(String taskId,String recordId);

   void addPulic(ApPublicEntity apPublicEntity,HttpServletRequest request);

    List<ApDeptExtractInfoEntity> findAll();

    List<ApUnitEntity> findDeptByTaskId(String taskId);
}
